<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MVCWeb.Models.ViewData.NewsNewViewData>" %>

<%@ Register Src="~/Views/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="mmuc" %>
<%@ Register Src="~/Views/Shared/LogOnUserControl.ascx" TagName="LogOnUserControl" TagPrefix="louc" %>

<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
    <title>
        <%= HttpUtility.HtmlDecode(ViewData.Model.News.Title) %></title>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <louc:LogOnUserControl ID="LogOnUserControl1" runat="server" />
    <!-- BEGIN: MainMenu -->
    <mmuc:MainMenu ID="MainMenu1" runat="server" />
    <!-- END: MainMenu -->
    
    <br />
    <a class="title" target="_blank" href='<%= Url.Action("Print", "News", new { id = ViewData.Model.News.NewsId }) %>'>Print</a>
    <hr />
    <table cellpadding="4" cellspacing="1" border="0" width="100%">
        <tr>
            <td valign="top" style="width: 1%" colspan="2">
                <% if (!string.IsNullOrEmpty(ViewData.Model.News.ImageUrl))
                   { %>
                <img width="200px" alt="" visible='<%= ViewData.Model.News.ImageUrl.Length > 0 %>' src='<%= ViewData.Model.News.ImageUrl %>' />
                <%} %>
            </td>
            <td style="width: 100%" valign="top">
                <a class="title" href='#'>
                    <%= HttpUtility.HtmlDecode(ViewData.Model.News.Title)%></a>
                <div style="padding-top: 2px">
                </div>
                Date:
                <%= ViewData.Model.News.PublishedDate.ToShortDateString()%>
                <div style="padding-top: 2px">
                </div>
                <%= HttpUtility.HtmlDecode(ViewData.Model.News.SubTitle)%>
                <div style="padding-top: 2px">
                </div>
                <%= HttpUtility.HtmlDecode(ViewData.Model.News.Description)%>
            </td>
        </tr>
    </table>
</asp:Content>
